<me:UIABAUFM x:Class="WPFExcelReport.TAB52"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"       
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                     xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                     x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIABAUFM.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/> 
        <ucd:Divideby1000  x:Key="d1000"/> 
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIABAUFM.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <DataGrid Grid.Row="0" 
                  Visibility="{Binding IsMU,ElementName=TV,Converter={StaticResource bv}}"
                  Grid.Column="0"  
                AutoGenerateColumns="False" 
                  EnableRowVirtualization="False" 
                  Name="dlgMaster"
                  ItemsSource="{Binding Source={StaticResource vwMaster }}" 
                  HeadersVisibility="Column"  CanUserReorderColumns="False" CanUserResizeRows="False"  
                       RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto" 
                  Height="Auto" EnableColumnVirtualization="False" 
                  HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=ABAAUFKRS}" Header="" Width="Auto" MinWidth="20" />
                <DataGridTextColumn Binding="{Binding Path=ABAAUFLFD}" Header="{Binding Source={Localization:Translate Word=生产单}}" Width="Auto" MinWidth="30" />
                <DataGridTextColumn Binding="{Binding Path=ABAAUFPOS}" Header=" " Width="Auto"  />
                <DataGridTextColumn Binding="{Binding Path=ABARESMG, Converter={StaticResource d1000}}" Header="{Binding Source={Localization:Translate Word=预留}}" Width="Auto"/>
            </DataGrid.Columns>
        </DataGrid>
        <Grid Name="MasterMU"  Grid.Row="0" Grid.RowSpan="2" Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
        </Grid>
    </Grid>
</me:UIABAUFM>
